import os,json

## 获取当前路径

## 设置保存路径
#获取当前的路径
abs_path = os.path.abspath(__file__)

## 获取log文件夹的路径
# 项目路径
main_path = os.path.dirname(os.path.dirname(abs_path))

data_path = os.path.join(main_path,'datas')


def json_get(filename):
    with open(os.path.join(data_path,filename)) as f:
        # print(json.load(f))
        return json.load(f)

if __name__ == '__main__':
    json_get('data.json')